package com.nb.service;

import com.nb.domain.User;

import java.util.List;

/**
 * 用户业务接口
 * Created by fly on 2017/11/12.
 */
public interface UserService {

    /**
     * 根据用户主键获取用户信息
     * @param userId
     * @return
     * @throws Exception
     */
    User findUserById(int userId) throws Exception;

    /**
     * 获取用户列表
     * @return
     * @throws Exception
     */
    List<User> queryUserList() throws Exception;
}
